package com.ssm.platform.pojo.vo;

import com.ssm.basis.service.dictionary.GenderEnum;
import com.ssm.basis.web.jackson.dictionary.BeanPropertyTranslate;
import com.ssm.basis.web.jackson.dictionary.Dict;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 字典数据表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@BeanPropertyTranslate
@Accessors(chain = true)
public class DictTranslateTestVo implements Serializable {
    private static final long serialVersionUID = 1L;

    @Dict("gender")
    String code;

    @Dict(dictEnum = GenderEnum.class)
    String code2;

    TestVo testVo;

    @Getter
    @AllArgsConstructor
    @BeanPropertyTranslate
    public static class TestVo implements Serializable {
        private static final long serialVersionUID = 1L;

        @Dict("gender")
        String code;

        @Dict(dictEnum = GenderEnum.class)
        String code2;
    }
}
